<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>考场签到查询</title>
    <link rel="stylesheet" type="text/css" href="${s.base}/lib/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="${s.base}/css/base/index.css"/>
    <link rel="stylesheet" type="text/css" href="${s.base}/css/base/theme/theme.css"/>
</head>
<body>
<div class="wrap-container clearfix">
    <div class="column-content-detail">
        <form class="layui-form" method="post" action="/work/asset/exportWarranty">
            <input type="hidden" name="applyId" value="${applyId}" />
            <div class="search-cont clearfix" id="tool">
                <div class="operation-btn-cont">
                    <div class="operright cyt-retract-close hideMenu"> 收起筛选<i class="iconfont">&#xe658;</i></div>
                    <div class="operright cyt-retract-open showMenu" style="display: none;"> 展开筛选<i class="iconfont">&#xe936;</i></div>
                    <div class="triangle-bottom"></div>
                    <div class="triangle-top"></div>
                </div>
                <div class="search-details">
                    <div class="layui-form-item marb5">
                        <!--search开始-->
                        <div class="layui-inline">
                            <label class="layui-form-label">考试名称：</label>
                            <div class="layui-input-inline">
                                <input type="text" name="testName" id="testName" placeholder="请输入考试名称" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-inline">
                            <label class="layui-form-label">考场号：</label>
                            <div class="layui-input-inline">
                                <input type="text" name="kcNum" id="kcNum" placeholder="请输入考场号" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-inline">
                            <label class="layui-form-label">姓名：</label>
                            <div class="layui-input-inline">
                                <input type="text" name="name" id="name" placeholder="请输入姓名" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">签到情况：</label>
                            <div class="layui-input-inline">
                                <select name="signState" id="signState">
                                </select>
                            </div>
                        </div>
                        <!--search结束-->
                        <div class="layui-inline marl8">
                            <button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="seacherBtn">搜索</button>
                            <button class="layui-btn layui-btn-normal" type="reset">重置</button>
                        </div>
                    </div>
                </div>
            </div>
        </form>
        <div class="layui-form" id="table-list">
            <table id="entityList" lay-filter="entityList" class="cy-list-table"></table>
        </div>
    </div>
</div>
<!--操作-->
<script src="${s.base}/lib/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script src="${s.base}/js/common.js" type="text/javascript" charset="utf-8"></script>
<script>

    var applyId='${applyId}';
    var tableIns = null;
    layui.use(['jquery', 'table', 'page', 'dialog', 'baseutil'], function () {
        var $ = layui.jquery,
            page = layui.page,
            table = layui.table,
            dialog = layui.dialog,
            baseutil = layui.baseutil;

        //获取分页数据
        page.initDict('signState,kcState', function (dictData) {
            page.showDict($("#signState"), page.aceeptDictContentList(dictData, 'signState'), "全部");
            page.showDict($("#kcState"), page.aceeptDictContentList(dictData, 'kcState'), "全部");
            var url = "/work/kwmanagement/kwstudentmessage/getAllStudentSign";
            var cols = [
                {field: 'title', title: '序号', align: 'left', width: 80, type: 'numbers'},
                {field: 'name', title: '姓名', align: 'center'},
                {field: 'testName', title: '考试名称', align: 'center'},
                {field: 'kmmc', title: '考试科目', align: 'center'},
                {field: 'examNum', title: '准考证号', align: 'center'},
                {field: 'kcNum', title: '考场号', align: 'center'},
                {
                    field: 'signState', title: '签到情况', align: 'center', templet: function (d) {
                    if(d.signState==="2"){
                        return '<span style="color: red">' + page.aceeptDictContentName(dictData, 'signState', d.signState) + '</span>';
                    }else if(d.signState==="1"){
                        return '<span style="color: grey">' + page.aceeptDictContentName(dictData, 'signState', d.signState) + '</span>';
                    }
                    //return page.aceeptDictContentName(dictData, 'signState', d.signState);
                }
                }
            ];
        tableIns = page.initDate(cols, url);

      });

    });


</script>
</body>
</html>